$(function(){
	$("#areaIn").bind('input propertychange',function(){
		 //alert($("#areaIn").val());
		var areaname = $("#areaIn").val();
		var area = {"areaName":areaname};
		$.ajax({
			type:"POST",
			url:"http://localhost:8089/ajaxtestbyjquery/search",
			dataType:"json",
			contentType:"application/json",
			data:JSON.stringify(area)
		}).done(function(msg){
			$("#ul").empty();
			msg.forEach(item=>{
				var li = $("<li>"+item+"</li>");
				$("#ul").append(li);
				
		  });
			console.log(msg);
		});
		
	});
	
	
	
	
	
});



























